import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/common.css'
import './assets/js/rem'
import 'vant/lib/index.css'
import './plugins/vant'
import 'nprogress/nprogress.css'
//一定要使用3.7.2的版本
import 'animate.css'
import 'wowjs/css/libs/animate.css'
import { WOW } from 'wowjs'
Vue.prototype.WOW = WOW
//vue懒加载模块
import VueLazyload from 'vue-lazyload'
let errImg = require('./assets/img/error.jpg')
let loadingImg = require('./assets/img/loading.gif')
Vue.use(VueLazyload, {
  preLoad: 1,
  error: errImg,
  loading: loadingImg,
  attempt: 1,
})
//引入百度地图组件
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  //使用ak
  ak: 'uUx9oSowazDlHUp3B85KE0LwDqPxLC5r',
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
